<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>轮盘轮播</title>
  <link rel="stylesheet" href="./css/reset.css">
  <style>
    .rotary{
      width: 100%;
      height: 100%;
      position: fixed;
      top: 0px;
      left: 0;
    }
    .rotary_li{
      position: absolute;
      display: block;
      width: 220px;
      height: 310px;
      color: #ffffff;
      font-size: 18px;
    }
    .rotary_li img{
      display: block;
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
    }
    .prv,.next{
      width: 60px;
      height: 60px;
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: 50%;
      position: absolute;
      top: 50%;
      margin-top: -30px;
    }
    .prv img,.next img{
      display: block;
      width: 60px;
      height: 60px;
    }
    .prv{
      left: 60px;
    }
    .next{
      right: 60px;
    }
  </style>
</head>
<body>
  <div class="rotary">
    <ul class="rotary_ul"></ul>
    <div class="prv">
      <img src="./images/prv.png" alt="">
    </div>
    <div class="next">
      <img src="./images/next.png" alt="">
    </div>
  </div>

  <script src="./js/jquery-3.3.1.min.js"></script>
  <script>
    var arr = [
      {
        id:0,
        name:'chen',
        info:'666',
        background_color:'rgb(193, 50, 39)',
        img:'./images/lunpan1.png',
      },
      {
        id:1,
        name:'chen',
        info:'666',
        background_color:'rgb(217, 64, 52)',
        img:'./images/lunpan2.png',
      },
      {
        id:2,
        name:'chen',
        info:'666',
        background_color:'rgb(74, 66, 173)',
        img:'./images/lunpan3.png',
        
      },
      {
        id:3,
        name:'chen',
        info:'666',
        background_color:'rgb(84, 76, 187)',
        img:'./images/lunpan4.png',
      },
      {
        id:4,
        name:'chen',
        info:'666',
        background_color:'rgb(95, 87, 202)',
        img:'./images/lunpan5.png',
      },
      {
        id:5,
        name:'chen',
        info:'666',
        background_color:'rgb(34, 145, 169)',
        img:'./images/lunpan6.png',
      },
      {
        id:6,
        name:'chen',
        info:'666',
        background_color:'rgb(37, 154, 179)',
        img:'./images/lunpan7.png',
      },
      {
        id:7,
        name:'chen',
        info:'666',
        background_color:'rgb(41, 165, 192)',
        img:'./images/lunpan8.png',
      },
      {
        id:8,
        name:'chen',
        info:'666',
        background_color:'rgb(255, 200, 0)',
        img:'./images/lunpan9.png',
      },
      {
        id:9,
        name:'chen',
        info:'666',
        background_color:'rgb(239, 187, 0)',
        img:'./images/lunpan10.png',
      },
      {
        id:10,
        name:'chen',
        info:'666',
        background_color:'rgb(74, 66, 173)',
        img:'./images/lunpan11.png',
      },
      {
        id:11,
        name:'chen',
        info:'666',
        background_color:'rgb(95, 87, 202)',
        img:'./images/lunpan12.png',
      },
      {
        id:12,
        name:'chen',
        info:'666',
        background_color:'rgb(37, 154, 179)',
        img:'./images/lunpan13.png',
      },
      {
        id:13,
        name:'chen',
        info:'666',
        background_color:'rgb(217, 64, 52)',
        img:'./images/lunpan14.png',
      },
      {
        id:14,
        name:'chen',
        info:'666',
        background_color:'rgb(217, 64, 52)',
        img:'./images/lunpan15.png',
      },
      {
        id:15,
        name:'chen',
        info:'666',
        background_color:'rgb(34, 145, 169)',
        img:'./images/lunpan7.png',
      },
      {
        id:16,
        name:'chen',
        info:'666',
        background_color:'rgb(37, 154, 179)',
        img:'./images/lunpan15.png',
        ifcenter:true
      },
      {
        id:17,
        name:'chen',
        info:'666',
        background_color:'rgb(34, 145, 169)',
        img:'./images/lunpan9.png',
      },
      {
        id:18,
        name:'chen',
        info:'666',
        background_color:'rgb(37, 154, 179)',
        img:'./images/lunpan4.png',
      }
    ]    
  </script>
  <script src="./js/rotary.js"></script>
  <script src="./js/rotary_move.js"></script>
</body>
</html>